<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Paper Detail</title>
    <link rel="stylesheet" href="/style.css">
</head>
<body>
<div class="container">
    <!-- Sidebar -->
    <div class="sidebar">
        <div class="sidebar-header">
            <h2>System</h2>
        </div>
        <ul class="sidebar-menu">
            <li><a href="/home">仪表盘</a></li>
            <li><a href="/papers">论文管理</a></li>
        </ul>
    </div>

    <!-- Main content -->
    <div class="main-content">
        <header class="header">
            <h1>论文详情</h1>
        </header>

        <section class="paper-detail-card">
            <div class="detail-box">
                <h2>标题</h2>
                <p th:text="${paper.title}"></p>
            </div>

            <div class="detail-box">
                <h3>作者</h3>
                <p th:text="${paper.author}"></p>
            </div>

            <div class="detail-box">
                <h3>关键词</h3>
                <p th:text="${paper.keywords}"></p>
            </div>

            <div class="detail-box">
                <h3>摘要</h3>
                <p th:text="${paper.abstractText}"></p>
            </div>

            <div class="detail-box">
                <h3>上传日期</h3>
                <p th:text="${#dates.format(paper.pubdate, 'yyyy-MM-dd')}"></p>
            </div>

            <button class="btn btn-primary" onclick="window.location.href='/papers'">返回</button>
        </section>
    </div>
</div>
</body>
</html>
